package function;

import java.awt.Color;
import java.awt.Graphics;
import java.awt.Toolkit;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.image.ImageObserver;

import javax.swing.JLabel;

import panel.Window;

public class Parking implements Function, ActionListener{

	/*Panel*/
	Window window;
	
	/*Component*/
	JLabel labelName, labelNumber, labelPhone, labelHomepage, labelTime, labelAvailable, labelUse, labelDesc;
	
	public Parking(Window window){
		this.window = window;
		
		/*Component*/
		labelName = new JLabel("Name : ");
		labelNumber = new JLabel("Number : ");
		labelPhone = new JLabel("Phone : ");
		labelHomepage = new JLabel("Homepage : ");
		labelTime = new JLabel("Time : ");
		labelAvailable = new JLabel("Available : ");
		labelUse = new JLabel("Use : ");
		labelDesc = new JLabel("Desc : ");
		
		labelName.setBounds(553, 68, 150, 20);
		labelName.setForeground(Color.WHITE);
		labelNumber.setBounds(553, 83, 150, 20);
		labelNumber.setForeground(Color.WHITE);
		labelPhone.setBounds(553, 98, 150, 20);
		labelPhone.setForeground(Color.WHITE);
		labelHomepage.setBounds(553, 113, 150, 20);
		labelHomepage.setForeground(Color.WHITE);
		labelTime.setBounds(553, 128, 150, 20);
		labelTime.setForeground(Color.WHITE);
		labelAvailable.setBounds(553, 143, 150, 20);
		labelAvailable.setForeground(Color.WHITE);
		labelUse.setBounds(553, 158, 150, 20);
		labelUse.setForeground(Color.WHITE);
		labelDesc.setBounds(553, 173, 150, 20);
		labelDesc.setForeground(Color.WHITE);
		
		window.add(labelName);
		window.add(labelNumber);
		window.add(labelPhone);
		window.add(labelHomepage);
		window.add(labelTime);
		window.add(labelAvailable);
		window.add(labelUse);
		window.add(labelDesc);
	}
	
	public void draw(Graphics bufferG, Toolkit winTool, ImageObserver ob){
		bufferG.drawImage(winTool.getImage(".\\Images\\Main_Frame.png"), 271, 68, ob);
	}

	@Override
	public void actionPerformed(ActionEvent e) {
		// TODO Auto-generated method stub
		
	}
}
